﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jzy.Core.Common.Web;
using Jzy.Workflow.Line.Rules;
using Frame.Lib.Utilities;

namespace Jzy.Web.WorkFlow.Line
{
    public partial class AddRules : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {                
                BindRelation();


               
                WebUtil.BindListControlWithEnum(DataType, typeof(DataType));

                
            }
        }
        private void BindRelation()
        {
            string[] str = new string[] { ">", ">=", "==", "<", "<=", "!=" };
            foreach (string tmp in str)
            {
                this.Relation.Items.Add(new ListItem(tmp, tmp));
            }
            this.Relation.Items.Add(new ListItem("包含", "包含"));

            this.Logic.Items.Add(new ListItem("and", "and"));
            this.Logic.Items.Add(new ListItem("or", "or"));
        }

    
    }
}
